
// 导出vue的插件在 main.js中被使用
// 注册全局组件
import PageTools from '@/components/PageTools/index.vue'
import Mycom1 from '@/components/Mycom1/index.vue'
//  上传图片组件
import UploadImg from '@/components/UploadImg/index.vue'
//   头像组件
import ImageHolder from '@/components/ImageHolder/index.vue'
import Lang from '@/components/Lang/index.vue'
import ScreenFull from './ScreenFull/index.vue'

export default {
  install(Vue) {
    console.log('插件加载中')
    // 原型加了 num 属性
    // 注册全局组件
    Vue.component('PageTools', PageTools)
    Vue.component('Mycom1', Mycom1)
    Vue.component('UploadImg', UploadImg)
    Vue.component('ImageHolder', ImageHolder)
    Vue.component('Lang', Lang)
    Vue.component('ScreenFull', ScreenFull)

    Vue.prototype.num = 12121
    Vue.prototype.hello = () => {
      alert('hello')
    }
  }
}
